package com.kristin.thread;

/**
 * @ClassName ThreadGroupMain
 * @Description TODO
 * @Author Kristin
 * @Date 2021/06/24 11:50:23
 * @Version 1.0.0
 */
public class ThreadGroupMain {


    public static void main(String[] args) throws InterruptedException {
//        ThreadGroup tg = new ThreadGroup("krstinGroup");
//        for (int i = 0 ; i<10; i++) {
//            Thread thread = new Thread(tg, new MyRunnalbe(i));
//            thread.start();
//        }
//        tg.interrupt();
//        // 获取线程组
//        Thread.sleep(2*1000);
//        System.out.println("主程序结束运行");
    }

}
